import request from '@/utils/request'

export function add(data) {
  return request({
    url: '/serviceItem',
    method: 'post',
    data
  })
}
export function update(data) {
  return request({
    url: '/serviceItem',
    method: 'put',
    data
  })
}

export function removeServiceItem(id) {
  return request({
    url: '/serviceItem/' + id,   
    method: 'delete'
  })
}

export function page(data) {
  return request({
    url: '/serviceItem/page',
    method: 'post',
    data
  })
}

export function getserviceItemById(id) {
  return request({
    url: '/serviceItem/' + id,
    method: 'get'
  })
}





export function getTblae(data) {
  return request({
    url: '/serviceRequire/',
    method: 'post',
    data
  })
}




export function listByRole(roleType) {
  return request({
    url: '/manager/listByRole/' + roleType,
    method: 'get'
  })
}





export function tjByfp(data) {
  return request({
    url: '/serviceRequire/distribut/',
    method: 'put',
    data
  })
}




export function tjBygj(data) {
  return request({
    url: '/serviceRequire/flowUp/',
    method: 'put',
    data
  })
}

export function getSer(data) {
  return request({
    url: '/serviceRequire/getAllServiceItem/',  
    method: 'get',
  })
}